import React from 'react';
import ToolItemBase from './ToolItemBase/index';
 import Preview from './Preview/Preview.js';
import ToolShopTitlePreview from './Preview/ToolShopTitlePreview';
class ToolShopTitle extends ToolItemBase {}
ToolShopTitle.defaultProps = {
	name:"店标",
	icon:<i className="tool-icon iconfont">&#xe698;</i>,
	preview:ToolShopTitlePreview,
	formField:{
			"title":{"type":"title","title":"商家店标","name":"title"},
			"shopTitle":{"type":"text","title":"商家名称","name":"shopTitle","placeholder":"请输入店铺名称"},
			"isTmall":{"type":"select","title":"是否天猫","name":"isTmall","placeholder":"请选择",'dataSource': '[{"label":"是","value":"true"},{"label":"否","value":"false"}]',"dataApi":""},
			"shopLev":{"type":"select","title":"店铺等级（天猫不生效）","name":"shopLev","placeholder":"请选择",'dataSource': '',"dataApi":"getShopLevels"},
			"shopIcon":{"type":"picture","title":"图片","name":"shopIcon","max":1,"aspectRatio":1,"onlyCrop":false},
			"shopLink":{"type":"text","title":"店铺链接","name":"shopLink","placeholder":"请插入正确的手淘链接"},
			"shareContent":{"type":"text","title":"分享内容","name":"shareContent","placeholder":"请输入分享内容"},
			"color":{"type":"text","title":"前景色","name":"color","placeholder":"请输入颜色代码，#号开头"},
			"bgColor":{"type":"text","title":"背景色","name":"bgColor","placeholder":"请输入颜色代码，#号开头"},
			"btnColor":{"type":"text","title":"按钮颜色","name":"btnColor","placeholder":"请输入颜色代码，#号开头"},
			"btnTxtColor":{"type":"text","title":"按钮文字颜色","name":"btnTxtColor","placeholder":"请输入颜色代码，#号开头"},
			"btnBdrColor":{"type":"text","title":"按钮边框颜色","name":"btnBdrColor","placeholder":"请输入颜色代码，#号开头"},
		},
	formData:{
		"title":"",
		"shopTitle":"我的店铺",
		"isTmall":"true",
		"shopLev":"",
		"shopIcon":"https://img.alicdn.com/imgextra/i4/27390555/O1CN01lA6hF11FyEIHTWZDI_!!27390555.gif",
		"shopLink":"",
		"shareContent":"",
		"color":"",
		"bgColor":"#FFFFFF",
		"btnColor":"",
		"btnTxtColor":"",
		"btnBdrColor":"",
	},
	cls:"",
	code:"shop_title_v1",
	maxCount:1,
};
export default (ToolShopTitle);